/*
 * MissileView.hpp
 *
 *  Created on: 22.11.2013
 *      Author: dima
 */

#ifndef MISSILEVIEW_HPP_
#define MISSILEVIEW_HPP_


#include "../Model/MissileModel.hpp"
#include "../Model/TankModel.hpp"

#include <SDL/SDL.h>
#include <map>


namespace Tanks
{

namespace View
{

  class MissileView
  {
  public:

    MissileView(SDL_Surface * argScreen);
    ~MissileView();

    void Draw();

  private:

    int m_explosionSoundChannel;

    int m_XOffsetExplosion, m_YOffsetExplosion;

    SDL_Surface * m_missileImage;
    SDL_Surface * m_missileExplosionImage;

    SDL_Surface * m_screen;

    std::map<Tanks::Model::MissileModel *, int> m_currentImages;
  };

}

}


#endif /* MISSILEVIEW_HPP_ */
